import jsc from 'jsverify'
import React from 'react'
import {HelloWorld1, HelloWorld2} from '../src/hello.js'

describe('Greeters', () =>
  it('should greet anyone', () =>
    [HelloWorld1, HelloWorld2]
     .forEach(Comp =>
       jsc.assertForall(jsc.string, name =>
         shallow(<Comp name={name}/>).text()
           === `Hello ${name}`))))
